package tw.com.softleader.fire.setting.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tw.com.softleader.fire.common.dao.GenericDao;
import tw.com.softleader.fire.common.service.GenericService;
import tw.com.softleader.fire.setting.dao.AcuAddrDao;
import tw.com.softleader.fire.setting.entity.AcuAddrEntity;

/**
 * @Author:Rhys
 */

@Service
public class AcuAddrService extends GenericService<AcuAddrEntity> {
	
	@Autowired
	private AcuAddrDao dao;
	
	@Override
	protected GenericDao<AcuAddrEntity> getDao() {
		return dao;
	}
	
	protected AcuAddrDao getAcuAddrDao() {
		return dao;
	}
	
	public List<AcuAddrEntity> search(AcuAddrEntity entity){
		return getAcuAddrDao().findByAcuNo(entity);
	}
}
